package com.wx.javacode.poly_.object_;

/**
 * ClassName:Equals01
 * Package :com.wx.javacode.poly_.object_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/25 - 10:05
 */
public class Equals01 {
    public static void main(String[] args) {
        A a = new A();
        A b = a;
        A c = b;
        System.out.println(a == c);
        System.out.println(b == c);
        B bObj = a;
        System.out.println(bObj == c);
        int num1 = 10;
        int num2 = 10;
        System.out.println(num1 == num2);
        System.out.println("hello".equals("hello"));
    }
}

class A extends B {
}

class B {
}
